package com.gitee.wsl.markdown.html

import com.gitee.wsl.markdown.model.MarkwonVisitor


/**
 * @since 2.0.0
 */
interface MarkwonHtmlRenderer {

     fun render(visitor: MarkwonVisitor, parser: MarkwonHtmlParser)

     fun tagHandler(tagName: String): TagHandler?

}


internal class MarkwonHtmlRendererNoOp : MarkwonHtmlRenderer {
     override fun render(visitor: MarkwonVisitor, parser: MarkwonHtmlParser) {
          parser.reset()
     }

     override fun tagHandler(tagName: String): TagHandler? {
          return null
     }
}